package com.tmptSource.dto;

import java.io.Serializable;

import com.tmpt.utils.StringUtils;
import com.tmptSource.enums.*;

/**
 * Created by wxy on 2017/8/26.
 */
public class OwAdvShopbrandBasicInfoDto implements Serializable {

    private static final long serialVersionUID = 1L;

    //----------------------------------------
    // model
    //----------------------------------------
    private String id;
    private String advSecurityInfo;
    private String advApprovalTerm;
    private String addr;
    private String advBrandType;
    private String advContent;
    private String owner;
    private String linkman;
    private String tel;
    private String advSetMode;
    private String setYear;
    private String advApproval;
    private String advStructureType;
    private String advSetHeight;
    private String size;
    private String setNum;
    private String advMaterial;
    private String companyId;
    private String createdate;
    private String deleteflag;
    private String createman;
    private String createmanId;
    private String modifydate;
    private String modifyman;
    private String modifymanId;

    //----------------------------------------
    // 与页面交互时的参数
    //----------------------------------------
    private String createdate_Start;
    private String createdate_End;
    private String modifydate_Start;
    private String modifydate_End;

    //多选项Options，加_Str做数据显示
    private String advSecurityInfo_Str;
    private String advBrandType_Str;
    private String advSetMode_Str;
    private String advApproval_Str;
    private String advStructureType_Str;
    private String advSetHeight_Str;
    private String advMaterial_Str;
    private String deleteflag_Str;


    //=====================================================
    // setter getter method
    //=====================================================

    public String getAdvSecurityInfo_Str(){
        advSecurityInfo_Str = AdvSecurityInfo.explain(advSecurityInfo,"");
        return advSecurityInfo_Str;
    }
    public void setAdvSecurityInfo_Str(String advSecurityInfo_Str){
        this.advSecurityInfo_Str = advSecurityInfo_Str;
    }

    public void setAdvBrandType_Str(String advBrandType_Str){
        this.advBrandType_Str = advBrandType_Str;
    }
    public String getAdvBrandType_Str() {
        StringBuilder sb = new StringBuilder();
        //多选字段，split->explain->combine
        if(!StringUtils.isNull(this.advBrandType)) {
            String[] ss = this.advBrandType.split(",");
            for (int i = 0; i < ss.length; i++) {
                String s = ss[i];
                String r = AdvBrandType.explain(s, "");
                sb.append(r).append(",");
            }
            //删除最后一个字符“,”
            if (sb.length() > 0) {
                sb.deleteCharAt(sb.length() - 1);
            }
            this.advBrandType_Str = sb.toString();
        }

        return this.advBrandType_Str;
    }
    public String getAdvSetMode_Str(){
        advSetMode_Str = AdvSetMode.explain(advSetMode,"");
        return advSetMode_Str;
    }
    public void setAdvSetMode_Str(String advSetMode_Str){
        this.advSetMode_Str = advSetMode_Str;
    }
    public String getAdvApproval_Str(){
        advApproval_Str = AdvApproval.explain(advApproval,"");
        return advApproval_Str;
    }
    public void setAdvApproval_Str(String advApproval_Str){
        this.advApproval_Str = advApproval_Str;
    }
    public String getAdvStructureType_Str(){
        advStructureType_Str = AdvStructureType.explain(advStructureType,"");
        return advStructureType_Str;
    }
    public void setAdvStructureType_Str(String advStructureType_Str){
        this.advStructureType_Str = advStructureType_Str;
    }
    public String getAdvSetHeight_Str(){
        advSetHeight_Str = AdvSetHeight.explain(advSetHeight,"");
        return advSetHeight_Str;
    }
    public void setAdvSetHeight_Str(String advSetHeight_Str){
        this.advSetHeight_Str = advSetHeight_Str;
    }

    public String getAdvMaterial_Str() {
        StringBuilder sb = new StringBuilder();
        //多选字段，split->explain->combine
        if(!StringUtils.isNull(this.advBrandType)) {
            String[] ss = this.advMaterial.split(",");
            for (int i = 0; i < ss.length; i++) {
                String s = ss[i];
                String r = AdvMaterial.explain(s, "");
                sb.append(r).append(",");
            }
            //删除最后一个字符“,”
            if (sb.length() > 0) {
                sb.deleteCharAt(sb.length() - 1);
            }
            this.advMaterial_Str = sb.toString();
        }

        return this.advMaterial_Str;
    }
    public void setAdvMaterial_Str(String advMaterial_Str){
        this.advMaterial_Str = advMaterial_Str;
    }
    public String getDeleteflag_Str(){
        deleteflag_Str = Deleteflag.explain(deleteflag,"");
        return deleteflag_Str;
    }
    public void setDeleteflag_Str(String deleteflag_Str){
        this.deleteflag_Str = deleteflag_Str;
    }

    public String getId(){
        return this.id;
    }
    public void setId(String id){
        this.id=id;
    }
    public String getAdvSecurityInfo(){
        return this.advSecurityInfo;
    }
    public void setAdvSecurityInfo(String advSecurityInfo){
        this.advSecurityInfo=advSecurityInfo;
    }
    public String getAdvApprovalTerm(){
        return this.advApprovalTerm;
    }
    public void setAdvApprovalTerm(String advApprovalTerm){
        this.advApprovalTerm=advApprovalTerm;
    }
    public String getAddr(){
        return this.addr;
    }
    public void setAddr(String addr){
        this.addr=addr;
    }
    public String getAdvBrandType(){

        return this.advBrandType;
    }
    public void setAdvBrandType(String advBrandType){
        this.advBrandType=advBrandType;
    }
    public String getAdvContent(){
        return this.advContent;
    }
    public void setAdvContent(String advContent){
        this.advContent=advContent;
    }
    public String getOwner(){
        return this.owner;
    }
    public void setOwner(String owner){
        this.owner=owner;
    }
    public String getLinkman(){
        return this.linkman;
    }
    public void setLinkman(String linkman){
        this.linkman=linkman;
    }
    public String getTel(){
        return this.tel;
    }
    public void setTel(String tel){
        this.tel=tel;
    }
    public String getAdvSetMode(){
        return this.advSetMode;
    }
    public void setAdvSetMode(String advSetMode){
        this.advSetMode=advSetMode;
    }
    public String getSetYear(){
        return this.setYear;
    }
    public void setSetYear(String setYear){
        this.setYear=setYear;
    }
    public String getAdvApproval(){
        return this.advApproval;
    }
    public void setAdvApproval(String advApproval){
        this.advApproval=advApproval;
    }
    public String getAdvStructureType(){
        return this.advStructureType;
    }
    public void setAdvStructureType(String advStructureType){
        this.advStructureType=advStructureType;
    }
    public String getAdvSetHeight(){
        return this.advSetHeight;
    }
    public void setAdvSetHeight(String advSetHeight){
        this.advSetHeight=advSetHeight;
    }
    public String getSize(){
        return this.size;
    }
    public void setSize(String size){
        this.size=size;
    }
    public String getSetNum(){
        return this.setNum;
    }
    public void setSetNum(String setNum){
        this.setNum=setNum;
    }

    public String getAdvMaterial(){
        return this.advMaterial;
    }
    public void setAdvMaterial(String advMaterial){
        this.advMaterial=advMaterial;
    }
    public String getCompanyId(){
        return this.companyId;
    }
    public void setCompanyId(String companyId){
        this.companyId=companyId;
    }
    public String getCreatedate(){
        return this.createdate;
    }
    public void setCreatedate(String createdate){
        this.createdate=createdate;
    }
    public String getDeleteflag(){
        return this.deleteflag;
    }
    public void setDeleteflag(String deleteflag){
        this.deleteflag=deleteflag;
    }
    public String getCreateman(){
        return this.createman;
    }
    public void setCreateman(String createman){
        this.createman=createman;
    }
    public String getCreatemanId(){
        return this.createmanId;
    }
    public void setCreatemanId(String createmanId){
        this.createmanId=createmanId;
    }
    public String getModifydate(){
        return this.modifydate;
    }
    public void setModifydate(String modifydate){
        this.modifydate=modifydate;
    }
    public String getModifyman(){
        return this.modifyman;
    }
    public void setModifyman(String modifyman){
        this.modifyman=modifyman;
    }
    public String getModifymanId(){
        return this.modifymanId;
    }
    public void setModifymanId(String modifymanId){
        this.modifymanId=modifymanId;
    }

    public String getCreatedate_Start(){
        return createdate_Start;
    }
    public void setCreatedate_Start(String createdate_Start){
        this.createdate_Start = createdate_Start;
    }
    public String getCreatedate_End(){
        return createdate_End;
    }
    public void setCreatedate_End(String createdate_End){
        this.createdate_End = createdate_End;
    }
    public String getModifydate_Start(){
        return modifydate_Start;
    }
    public void setModifydate_Start(String modifydate_Start){
        this.modifydate_Start = modifydate_Start;
    }
    public String getModifydate_End(){
        return modifydate_End;
    }
    public void setModifydate_End(String modifydate_End){
        this.modifydate_End = modifydate_End;
    }


}
